import React from 'react';
import ReactDOMClient from 'react-dom/client';
import {defineBaseConfig} from '@peryl/micro-web';
import {App} from "./App";
import '../node_modules/plain-design/dist/plain-design.min.css';
import {microApp} from "./microApp";

console.log('主应用 base 入口初始化');

defineBaseConfig({
  getPublicPath: () => __webpack_public_path__,
  setPublicPath: val => __webpack_public_path__ = val,
  microApp,
  init: () => {
    /*---------------------------------------初始化-------------------------------------------*/
    ReactDOMClient.createRoot(document.querySelector('#app')!).render(<App/>);
  },
});
